package top.hours48.ddbearapi.handler;

import org.springframework.stereotype.Component;
import top.hours48.ddbearapi.model.role.RoleMO;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Component
public class RoleHandler {

    public List<RoleMO> queryRoles() {
        List roleMOs = new ArrayList();
        roleMOs.add(new RoleMO(0, new Date(), "只能查看及操作商品", 1, "商品管理员", 0, 1));
        roleMOs.add(new RoleMO(0, new Date(), "只能查看及操作订单", 2, "订单管理员", 0, 1));
        roleMOs.add(new RoleMO(0, new Date(), "拥有所有查看及操作商品", 5, "超级管理员", 0, 1));
        return roleMOs;
    }
}

